#pragma once

#include "Entity.h"

class asteroid : public Entity {
public:
    asteroid()
    {
        dx = rand() % 8 - 4;
        dy = rand() % 8 - 4;
        name = "asteroid";
    }

    void update()
    {
        x += dx;
        y += dy;

        if (x > WindowsWidth) x = 0;  if (x < 0) x = WindowsWidth;
        if (y > WindowsHeight) y = 0;  if (y < 0) y = WindowsHeight;
    }
};

